import React, { Component } from "react";
import {
  View,
  Platform,
  Text,
  AppRegistry,
  NetInfo,
  StyleSheet,
  ToastAndroid,
} from "react-native";
import { Provider } from "mobx-react/native";
import {observer} from "mobx-react/native";
import App from "./src";
import UseAPI from "./src/models/useAPI";

//判断是否是开发模式;
if(!__DEV__) {
  global.console = {
    log: () => {},
  }
}

@observer
export default class FreshInfos extends Component {
  constructor(props) {
    super(props);
  }
  componentDidMount() {
    global.getNetwork();
  }
  render() {
    return (
      <View style={{flex: 1}}>
        <Provider>
          <App />
        </Provider>
      </View>
    )
  }
}

AppRegistry.registerComponent('fresh_infos', () => FreshInfos);

